FROM registry.cn-beijing.aliyuncs.com/dazhuan/node:20.9.0
RUN mkdir -p /opt/server/.output
WORKDIR /opt/server
COPY .output/ /opt/server/.output/
COPY ecosystem.config.js /opt/server/ecosystem.config.js
ADD ./start.sh /opt/server/start.sh
RUN chmod +x /opt/server/start.sh
# COPY dist/nginx.conf /usr/share/nginx/conf/nginx.conf
# 声明暴露3000端口
EXPOSE 3000
CMD [ "/bin/bash","-c","/opt/server/start.sh" ] 